﻿@model SuperStar.Models.LoginModel
@{
    ViewBag.Title = "Đăng nhập";
}
@section JavaScript
{
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
}
@section Styles
{
    <link rel="stylesheet" type="text/css" href="~/Content/theme/mystyle_login.css" />
}
<div class="box">
    <h2 class="head-big-title">
        <a href="#"><span>Đăng nhập</span></a>
    </h2>
    <div class="sub_content">
        <div id="content_login">
            <div id="sub_content_login">
                @using (Html.BeginForm((string)ViewBag.FormAction, "Account", new { ReturnUrl = Request.QueryString["ReturnUrl"] }))
                {
                    @Html.AntiForgeryToken()
                    @Html.ValidationSummary(true, "Đăng nhập không thành công.")
                    <div id="row_login" style="margin-top: 10px;">
                        <div id="sub_title_login">
                            @Html.LabelFor(m => m.UserName)
                        </div>
                        <div id="input_login">
                            @Html.TextBoxFor(m => m.UserName)
                            @Html.ValidationMessageFor(m => m.UserName)
                        </div>
                    </div>

                    <div id="row_login">
                        <div id="sub_title_login">
                            @Html.LabelFor(m => m.Password)
                        </div>
                        <div id="input_login">
                            @Html.PasswordFor(m => m.Password)
                            @Html.ValidationMessageFor(m => m.Password)
                        </div>
                    </div>

                    <div id="row_login" style="text-align: center; line-height: 20px;">
                        @Html.LabelFor(m => m.RememberMe)
                        @Html.CheckBoxFor(m => m.RememberMe)
                    </div>

                    <div id="row_login" style="text-align: center;">
                        Chưa có tài khoản, @Html.ActionLink("Đăng ký", "Register")
                    </div>

                    <div id="row_login">
                        <div id="sub_title_login" style="padding-left: 95px;">
                            <input type="submit" value="Đăng nhập" name="Login">
                        </div>
                        <div id="input_login" style="width: 140px; padding-left: 0px;">
                            <input type="reset" value="Huỷ bỏ" name="Cancel">
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
    <!--End sub_content-->
</div>
